package com.lis.scf.common.dto;



import com.lis.scf.common.enums.CompanyType;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import lombok.Data;

import java.util.Set;

/**
 * 用户注册DTO
 */
@Data
public class UserRegisterDTO {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "企业名称不能为空")
    private String companyName;

    @NotBlank(message = "统一社会信用代码不能为空")
    private String unifiedCreditCode;

    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String mobileNumber;

    private String realName;

    private CompanyType companyType;

    private Set<Long> roleIds;
}
